package com.mxl.common.helper;

/**
 * 业务错误从300开始,系统错误从200开始
 * 
 * @author Administrator
 * 
 */
public enum ResponseErrorCode {
	/**
	 * 失败.
	 */
	FAIL("500", "系统异常"),
	
	/**
	 * 成功.
	 */
	SUCC("200", "收单成功"),
	/**
	 * 成功.
	 */
	ORDER_ING("999", "订单进行中"),
    
	// 系统错误从2000开始
	GATEWAYORDER_WRAP_ERROR("2000","系统处理wrapPayOrder错误"),
	SOKECT_EXCEPTION("2001", "网络通信系统异常"),
	RANK_CODE_ERROE("2002", "验证码为空或者不正确"),
	// 业务错误从3000开始
	ORDERID_IS_NULL("3000","订单为空"),
	ORDERID_IS_NOT_USABLE("3001","订单不合符要求"),
	MEMBERCODE_IS_NULL("3002","商户号为空"),
	MEMBERCODE_IS_ONT_START("3003","商户号没开通"),
	MEMBERCODE_IS_CLOSE("3004","商户号关闭了"),
	ORDERAMOUNT_IS_NULL("3005","订单金额为空"),
	ORDERAMOUNT_IS_NOT_NUMBER("3006","订单金额不是数字"),
	ORDERAMOUNT_ERROR("3007","订单金额格式错误,只能在1到1000元之间"),
	NOTIFY_URL_ISNULL("3008","回调url为空"),
	NOTIFY_URL_IS_NOT_USABLE("3009","回调url错误非法字符"),
	VERSION_IS_RIGHT("3010","版本号不支持"),
	EXT1_OVER_LEN("3011","EXT1参数超过最大长度"),
	EXT2_OVER_LEN("3012","EXT2参数超过最大长度"),
	PRODUCT_NAME_OVER_LEN("3013","PRODUCT_NAME参数超过最大长度"),
	SIGN_ERROR("3014","验签失败"),
	CARD_NOT_SUPPER("3015","系统目前不支持此卡,或者运营商正在维护中"),
	MEMBER_RATE_NOTEFFE("3016","商户没有设置费率,或者是费率还没有生效"),
	CHARGE_CHANNEL_NOT_AVAILABLE("3017","没有可用的渠道，渠道维护中"),
	SZX_FLG_EEROR("3018","直连商户没有传入卡号和卡密"),
	CARDNO_ANDPWD_DECODE_ERROR("3019","卡号或者卡密解密失败"),
	MEMBER_ORDERID_REPEAT("3020","商户提交的订单号重复"),
	CARDNO_REPEAT("3021","卡号已经被使用"),
	CARDPWD_REPEAT("3022","卡密已经被使用"),
	MEMBER_CARD_NOT_SUPPER("3023","商户目前不支持此卡");
	
	private String value;

	private String desc;

	private ResponseErrorCode(String value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	public String getValue() {
		return value;
	}

	public String getDesc() {
		return desc;
	}
}
